package com.bdqn.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer userId;
	private Team team;
	private Group group;
	private String userName;
	private String password;
	private String trueName;
	private Timestamp lastLoginTime;
	private String lastLoginIp;
	private Set advicesForSolverId = new HashSet(0);
	private Set logs = new HashSet(0);
	private Set advicesForUserId = new HashSet(0);
	private Set datas = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(Group group, String userName, String password, String trueName) {
		this.group = group;
		this.userName = userName;
		this.password = password;
		this.trueName = trueName;
	}

	/** full constructor */
	public User(Team team, Group group, String userName, String password,
			String trueName, Timestamp lastLoginTime, String lastLoginIp,
			Set advicesForSolverId, Set logs, Set advicesForUserId, Set datas) {
		this.team = team;
		this.group = group;
		this.userName = userName;
		this.password = password;
		this.trueName = trueName;
		this.lastLoginTime = lastLoginTime;
		this.lastLoginIp = lastLoginIp;
		this.advicesForSolverId = advicesForSolverId;
		this.logs = logs;
		this.advicesForUserId = advicesForUserId;
		this.datas = datas;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Team getTeam() {
		return this.team;
	}

	public void setTeam(Team team) {
		this.team = team;
	}

	public Group getGroup() {
		return this.group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public Timestamp getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Timestamp lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIp() {
		return this.lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public Set getAdvicesForSolverId() {
		return this.advicesForSolverId;
	}

	public void setAdvicesForSolverId(Set advicesForSolverId) {
		this.advicesForSolverId = advicesForSolverId;
	}

	public Set getLogs() {
		return this.logs;
	}

	public void setLogs(Set logs) {
		this.logs = logs;
	}

	public Set getAdvicesForUserId() {
		return this.advicesForUserId;
	}

	public void setAdvicesForUserId(Set advicesForUserId) {
		this.advicesForUserId = advicesForUserId;
	}

	public Set getDatas() {
		return this.datas;
	}

	public void setDatas(Set datas) {
		this.datas = datas;
	}

}